package com.kitty.game.market.message;


import com.kitty.game.market.model.StallItem;
import com.kitty.mina.Modules;
import com.kitty.mina.annotation.ListField;
import com.kitty.mina.annotation.MessageMeta;
import com.kitty.mina.message.Message;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 处理角色发言
 */
@Setter
@Getter
@MessageMeta(module = Modules.MSG_STALL_ITEM_LIST)
public class RespStallList extends Message {

    /*
    data.totalPage = pkt.GetShort(pkt)
	data.cur_page = pkt.GetShort(pkt)
	data.count = pkt.GetShort(pkt)
	data.path_str = pkt.GetLenString(pkt)
	data.select_gid = pkt.GetLenString(pkt)
	data.sell_stage = pkt.GetChar(pkt)
	data.sort_key = pkt.GetLenString(pkt)
	data.is_descending = pkt.GetChar(pkt)
     */

    private short totalPage;// 总页码
    private short currPage;//第几页
    @ListField(0)
    private List<StallItem> list;//每页数量
    private String path_str;

    private String select_gid;

    private byte sell_stage;

    private String sort_key;

    private byte is_descending;//1 公示 2 在售
}
